package com.demo.zhihu.model;

import org.apache.ibatis.type.Alias;

@Alias("User")
public class User {
	private int id;
	private String name;
	private String mobile;
	private String password;
	private int likes;
	private int questions;
	private int answers;
	private String token;
	
	public User() {
		
	}
	
	public User(int id, int questions, int answers) {
		this.setId(id);
		this.setQuestions(questions);
		this.setAnswers(answers);
	}
	
	
	public User(String name,String mobile,String password) {
	this.name=name;
	this.mobile=mobile;
	this.password=password;
	}
	
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getLikes() {
		return likes;
	}

	public void setLikes(int likes) {
		this.likes = likes;
	}

	public int getQuestions() {
		return questions;
	}

	public void setQuestions(int questions) {
		this.questions = questions;
	}

	public int getAnswers() {
		return answers;
	}

	public void setAnswers(int answers) {
		this.answers = answers;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
	
	

}
